import { IsString, IsInt, IsNotEmpty } from 'class-validator';

export class CreateMasterDto {
  @IsNotEmpty({ message: 'name 不能为空' })
  @IsString()
  name: string;

  @IsNotEmpty()
  @IsInt()
  age: number;
}
